package com.ry;
import com.ry.util.timepick.R;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;

public class WelcomeActivity extends Activity {
	private MyRunnable runnable;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.welcome);

		runnable = new MyRunnable();
		Thread t = new Thread(runnable);
		t.start();
	}

	private class MyRunnable implements Runnable {

		public void run() {
			try {
				Thread.sleep(1000);
				Intent intent = new Intent(WelcomeActivity.this, MainActivity.class);
				startActivity(intent);
				WelcomeActivity.this.finish();
			} catch (Exception ex) {
			}
		}
	}

}
